/**
 * Ingenius-Group S.A.S
 *
 * Project: SAU
 * File: EditFactors2EvaluateEvent.java
 * Date: 08/02/2011
 */

package com.ingenius.sau.client.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.ingenius.sau.client.event.EditFactor2EvaluateEvent.EditFactor2EvaluateEventHandler;

/**
 * Class <strong>EditFactors2EvaluateEvent</strong>
 * 
 * @author Jesus David
 * @version 0.1
 */
public class EditFactor2EvaluateEvent extends
		GwtEvent<EditFactor2EvaluateEventHandler> {

	public interface EditFactor2EvaluateEventHandler extends EventHandler {

		void onEditFactor2Evaluate(EditFactor2EvaluateEvent event);
	}

	public static Type<EditFactor2EvaluateEventHandler> TYPE = new Type<EditFactor2EvaluateEventHandler>();

	private final String factor2EvaluateId;

	public EditFactor2EvaluateEvent(String factor2EvaluateId) {
		this.factor2EvaluateId = factor2EvaluateId;
	}

	public String getFactot2EvaluateId() {
		return factor2EvaluateId;
	}

	@Override
	public Type<EditFactor2EvaluateEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(EditFactor2EvaluateEventHandler handler) {
		handler.onEditFactor2Evaluate(this);
	}

}
